package com.hyj.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hyj.entity.Teachers;
import com.hyj.mapper.TeaMapper;
import com.hyj.service.TeaService;

@Service
public class TeaServiceImpl implements TeaService {

	
	@Autowired
	private TeaMapper teaMapper;

	@Override
	public List<Teachers> getTea(Teachers tea) {
		return teaMapper.getTea(tea);
	}

	@Override
	public int addTea(Teachers t) {
		return teaMapper.addTea(t);
	}

	@Override
	public int delTea(int TId) {
		return teaMapper.delTea(TId);
	}

	@Override
	public int updateTea(Teachers t) {
		return teaMapper.updateTea(t);
	}

}
